package com.dormitory.management.system.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.dormitory.management.system.entity.Student;
import com.dormitory.management.system.entity.WeekCheck;
import com.dormitory.management.system.req.StudentCheckInOutPageReq;
import com.dormitory.management.system.resp.StuAndHouResp;
import com.dormitory.management.system.resp.StudentCheckInOutResp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 学生表 Mapper 接口
 * </p>
 *
 * @author
 * @since 2021-12-17
 */
@Mapper
public interface StudentMapper extends BaseMapper<Student> {
    IPage<StudentCheckInOutResp> getIfCheckedStuInPage(IPage<StudentCheckInOutResp> page, @Param(Constants.WRAPPER) Wrapper<StudentCheckInOutResp> Wrapper);
    IPage<StudentCheckInOutResp> getIfCheckedStuOutPage(IPage<StudentCheckInOutResp> page, @Param(Constants.WRAPPER) Wrapper<StudentCheckInOutResp> Wrapper);
    StuAndHouResp getStudentInfo(@Param(Constants.WRAPPER) Wrapper<StuAndHouResp> Wrapper);
}
